package com.pls.data;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionManager {

	public Connection getConnection(String url, String user, String password,
			String driver) throws ClassNotFoundException, SQLException {
		Connection conn = null;

		Class.forName(driver);

		conn = DriverManager.getConnection(url, user, password);

		return conn;
	}
}

